<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Spec::Runner::Formatter::Story::HtmlFormatter</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Spec::Runner::Formatter::Story::HtmlFormatter</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../../../files/vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter_rb.html">
                vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                BaseTextFormatter
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000413">collected_steps</a>&nbsp;&nbsp;
      <a href="#M000419">found_scenario</a>&nbsp;&nbsp;
      <a href="#M000411">new</a>&nbsp;&nbsp;
      <a href="#M000427">print_step</a>&nbsp;&nbsp;
      <a href="#M000414">run_ended</a>&nbsp;&nbsp;
      <a href="#M000412">run_started</a>&nbsp;&nbsp;
      <a href="#M000418">scenario_ended</a>&nbsp;&nbsp;
      <a href="#M000422">scenario_failed</a>&nbsp;&nbsp;
      <a href="#M000421">scenario_pending</a>&nbsp;&nbsp;
      <a href="#M000417">scenario_started</a>&nbsp;&nbsp;
      <a href="#M000420">scenario_succeeded</a>&nbsp;&nbsp;
      <a href="#M000426">step_failed</a>&nbsp;&nbsp;
      <a href="#M000425">step_pending</a>&nbsp;&nbsp;
      <a href="#M000424">step_succeeded</a>&nbsp;&nbsp;
      <a href="#M000423">step_upcoming</a>&nbsp;&nbsp;
      <a href="#M000416">story_ended</a>&nbsp;&nbsp;
      <a href="#M000415">story_started</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->
    <div id="includes">
      <h3 class="section-bar">Included Modules</h3>

      <div id="includes-list">
        <span class="include-name">ERB::Util</span>
      </div>
    </div>

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000411" class="method-detail">
        <a name="M000411"></a>

        <div class="method-heading">
          <a href="#M000411" class="method-signature">
          <span class="method-name">new</span><span class="method-args">(options, where)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000411-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000411-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 11</span>
11:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">where</span>)
12:             <span class="ruby-keyword kw">super</span>
13:             <span class="ruby-ivar">@previous_type</span> = <span class="ruby-keyword kw">nil</span>
14:             <span class="ruby-ivar">@scenario_text</span> = <span class="ruby-value str">&quot;&quot;</span>
15:             <span class="ruby-ivar">@story_text</span> = <span class="ruby-value str">&quot;&quot;</span>
16:             <span class="ruby-ivar">@scenario_failed</span> = <span class="ruby-keyword kw">false</span>
17:             <span class="ruby-ivar">@story_failed</span> = <span class="ruby-keyword kw">false</span>
18:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000413" class="method-detail">
        <a name="M000413"></a>

        <div class="method-heading">
          <a href="#M000413" class="method-signature">
          <span class="method-name">collected_steps</span><span class="method-args">(steps)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000413-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000413-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 43</span>
43:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collected_steps</span>(<span class="ruby-identifier">steps</span>)
44:             <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">steps</span>.<span class="ruby-identifier">empty?</span>
45:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;      &lt;ul id=\&quot;stock_steps\&quot; style=\&quot;display: none;\&quot;&gt;&quot;</span>
46:               <span class="ruby-identifier">steps</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">step</span><span class="ruby-operator">|</span>
47:                 <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;        &lt;li&gt;#{step}&lt;/li&gt;&quot;</span>
48:               <span class="ruby-keyword kw">end</span>
49:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;      &lt;/ul&gt;&quot;</span>
50:             <span class="ruby-keyword kw">end</span>
51:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000419" class="method-detail">
        <a name="M000419"></a>

        <div class="method-heading">
          <a href="#M000419" class="method-signature">
          <span class="method-name">found_scenario</span><span class="method-args">(type, description)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000419-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000419-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 127</span>
127:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">found_scenario</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>)
128:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000427" class="method-detail">
        <a name="M000427"></a>

        <div class="method-heading">
          <a href="#M000427" class="method-signature">
          <span class="method-name">print_step</span><span class="method-args">(klass, type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000427-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000427-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 159</span>
159:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_step</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
160:             <span class="ruby-identifier">spans</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span> <span class="ruby-node">&quot;&lt;span class=\&quot;param\&quot;&gt;#{arg}&lt;/span&gt;&quot;</span> }
161:             <span class="ruby-identifier">desc_string</span> = <span class="ruby-identifier">description</span>.<span class="ruby-identifier">step_name</span>
162:             <span class="ruby-identifier">arg_regexp</span> = <span class="ruby-identifier">description</span>.<span class="ruby-identifier">arg_regexp</span>           
163:             <span class="ruby-identifier">inner</span> = <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@previous_type</span>)
164:               <span class="ruby-value str">&quot;And &quot;</span>
165:             <span class="ruby-keyword kw">else</span>
166:               <span class="ruby-node">&quot;#{type.to_s.capitalize} &quot;</span>
167:             <span class="ruby-keyword kw">end</span>
168:             <span class="ruby-identifier">i</span> = <span class="ruby-value">-1</span>
169:             <span class="ruby-identifier">inner</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">desc_string</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-identifier">arg_regexp</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">param</span><span class="ruby-operator">|</span> <span class="ruby-identifier">spans</span>[<span class="ruby-identifier">i</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>] }
170:             
171:             <span class="ruby-ivar">@scenario_text</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;                  &lt;li class=\&quot;#{klass}\&quot;&gt;#{inner}&lt;/li&gt;\n&quot;</span>
172:             
173:             <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'given scenario'</span><span class="ruby-value str">'given scenario'</span>
174:               <span class="ruby-ivar">@previous_type</span> = <span class="ruby-identifier">:given</span>
175:             <span class="ruby-keyword kw">else</span>
176:               <span class="ruby-ivar">@previous_type</span> = <span class="ruby-identifier">type</span>
177:             <span class="ruby-keyword kw">end</span>
178:             
179:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000414" class="method-detail">
        <a name="M000414"></a>

        <div class="method-heading">
          <a href="#M000414" class="method-signature">
          <span class="method-name">run_ended</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000414-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000414-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 53</span>
53:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_ended</span>
54:             <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;&lt;/div&gt;\n&lt;/body&gt;\n&lt;/head&gt;\n&quot;</span>
55:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000412" class="method-detail">
        <a name="M000412"></a>

        <div class="method-heading">
          <a href="#M000412" class="method-signature">
          <span class="method-name">run_started</span><span class="method-args">(count)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000412-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000412-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 20</span>
20:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_started</span>(<span class="ruby-identifier">count</span>)
21:             <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-8\&quot;?&gt;\n&lt;!DOCTYPE html\nPUBLIC \&quot;-//W3C//DTD XHTML 1.0 Strict//EN\&quot;\n\&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\&quot;&gt;\n&lt;html xmlns=\&quot;http://www.w3.org/1999/xhtml\&quot; xml:lang=\&quot;en\&quot; lang=\&quot;en\&quot;&gt;\n&lt;head&gt;\n&lt;title&gt;Stories&lt;/title&gt;\n&lt;meta http-equiv=\&quot;Content-Type\&quot; content=\&quot;text/html; charset=utf-8\&quot; /&gt;\n&lt;meta http-equiv=\&quot;Expires\&quot; content=\&quot;-1\&quot; /&gt;\n&lt;meta http-equiv=\&quot;Pragma\&quot; content=\&quot;no-cache\&quot; /&gt;\n&lt;script src=\&quot;javascripts/prototype.js\&quot; type=\&quot;text/javascript\&quot;&gt;&lt;/script&gt;\n&lt;script src=\&quot;javascripts/scriptaculous.js\&quot; type=\&quot;text/javascript\&quot;&gt;&lt;/script&gt;\n&lt;script src=\&quot;javascripts/rspec.js\&quot; type=\&quot;text/javascript\&quot;&gt;&lt;/script&gt;\n&lt;link href=\&quot;stylesheets/rspec.css\&quot; rel=\&quot;stylesheet\&quot; type=\&quot;text/css\&quot; /&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;div id=\&quot;container\&quot;&gt;\n&quot;</span>
22:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000418" class="method-detail">
        <a name="M000418"></a>

        <div class="method-heading">
          <a href="#M000418" class="method-signature">
          <span class="method-name">scenario_ended</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000418-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000418-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 105</span>
105:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_ended</span>
106:             <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@scenario_failed</span>
107:               <span class="ruby-ivar">@story_text</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;&lt;dl class=\&quot;failed\&quot;&gt;\n&quot;</span>
108:             <span class="ruby-keyword kw">else</span>
109:               <span class="ruby-ivar">@story_text</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;&lt;dl class=\&quot;passed\&quot;&gt;\n&quot;</span>
110:             <span class="ruby-keyword kw">end</span>
111:             
112:             <span class="ruby-ivar">@story_text</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;\#{@scenario_text}\n&lt;/ul&gt;\n&lt;/dd&gt;\n&lt;/dl&gt;\n&quot;</span>
113:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000422" class="method-detail">
        <a name="M000422"></a>

        <div class="method-heading">
          <a href="#M000422" class="method-signature">
          <span class="method-name">scenario_failed</span><span class="method-args">(story_title, scenario_name, err)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000422-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000422-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 138</span>
138:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_failed</span>(<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>, <span class="ruby-identifier">err</span>)
139:             <span class="ruby-ivar">@scenario_failed</span> = <span class="ruby-keyword kw">true</span>
140:             <span class="ruby-ivar">@story_failed</span> = <span class="ruby-keyword kw">true</span>
141:             <span class="ruby-identifier">scenario_ended</span>
142:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000421" class="method-detail">
        <a name="M000421"></a>

        <div class="method-heading">
          <a href="#M000421" class="method-signature">
          <span class="method-name">scenario_pending</span><span class="method-args">(story_title, scenario_name, reason)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000421-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000421-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 134</span>
134:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_pending</span>(<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>, <span class="ruby-identifier">reason</span>)
135:             <span class="ruby-identifier">scenario_ended</span>
136:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000417" class="method-detail">
        <a name="M000417"></a>

        <div class="method-heading">
          <a href="#M000417" class="method-signature">
          <span class="method-name">scenario_started</span><span class="method-args">(story_title, scenario_name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000417-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000417-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 94</span>
94:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_started</span>(<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>)
95:             <span class="ruby-ivar">@previous_type</span> = <span class="ruby-keyword kw">nil</span>
96:             <span class="ruby-ivar">@scenario_failed</span> = <span class="ruby-keyword kw">false</span>
97:             <span class="ruby-ivar">@scenario_text</span> = <span class="ruby-value str">&quot;&lt;dt&gt;Scenario: \#{h scenario_name}&lt;/dt&gt;\n&lt;dd&gt;\n&lt;ul class=\&quot;steps\&quot;&gt;\n&quot;</span>
98:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000420" class="method-detail">
        <a name="M000420"></a>

        <div class="method-heading">
          <a href="#M000420" class="method-signature">
          <span class="method-name">scenario_succeeded</span><span class="method-args">(story_title, scenario_name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000420-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000420-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 130</span>
130:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">scenario_succeeded</span>(<span class="ruby-identifier">story_title</span>, <span class="ruby-identifier">scenario_name</span>)
131:             <span class="ruby-identifier">scenario_ended</span>
132:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000426" class="method-detail">
        <a name="M000426"></a>

        <div class="method-heading">
          <a href="#M000426" class="method-signature">
          <span class="method-name">step_failed</span><span class="method-args">(type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000426-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000426-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 155</span>
155:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">step_failed</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
156:             <span class="ruby-identifier">print_step</span>(<span class="ruby-value str">'failed'</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
157:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000425" class="method-detail">
        <a name="M000425"></a>

        <div class="method-heading">
          <a href="#M000425" class="method-signature">
          <span class="method-name">step_pending</span><span class="method-args">(type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000425-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000425-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 151</span>
151:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">step_pending</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
152:             <span class="ruby-identifier">print_step</span>(<span class="ruby-value str">'pending'</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
153:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000424" class="method-detail">
        <a name="M000424"></a>

        <div class="method-heading">
          <a href="#M000424" class="method-signature">
          <span class="method-name">step_succeeded</span><span class="method-args">(type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000424-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000424-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 147</span>
147:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">step_succeeded</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
148:             <span class="ruby-identifier">print_step</span>(<span class="ruby-value str">'passed'</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) <span class="ruby-comment cmt"># TODO: uses succeeded CSS class</span>
149:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000423" class="method-detail">
        <a name="M000423"></a>

        <div class="method-heading">
          <a href="#M000423" class="method-signature">
          <span class="method-name">step_upcoming</span><span class="method-args">(type, description, *args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000423-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000423-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 144</span>
144:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">step_upcoming</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">description</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
145:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000416" class="method-detail">
        <a name="M000416"></a>

        <div class="method-heading">
          <a href="#M000416" class="method-signature">
          <span class="method-name">story_ended</span><span class="method-args">(title, narrative)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000416-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000416-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 74</span>
74:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">story_ended</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">narrative</span>)     
75:             <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@story_failed</span>
76:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;&lt;dl class=\&quot;story failed\&quot;&gt;\n&quot;</span>
77:             <span class="ruby-keyword kw">else</span>
78:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;&lt;dl class=\&quot;story passed\&quot;&gt;\n&quot;</span>
79:             <span class="ruby-keyword kw">end</span>
80:               <span class="ruby-ivar">@output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;\#{@story_text}\n&lt;/dd&gt;\n&lt;/dl&gt;\n&quot;</span>
81:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000415" class="method-detail">
        <a name="M000415"></a>

        <div class="method-heading">
          <a href="#M000415" class="method-signature">
          <span class="method-name">story_started</span><span class="method-args">(title, narrative)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000415-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000415-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb, line 62</span>
62:           <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">story_started</span>(<span class="ruby-identifier">title</span>, <span class="ruby-identifier">narrative</span>)
63:             <span class="ruby-ivar">@story_failed</span> = <span class="ruby-keyword kw">false</span>
64:             <span class="ruby-ivar">@story_text</span> = <span class="ruby-value str">&quot;&lt;dt&gt;Story: \#{h title}&lt;/dt&gt;\n&lt;dd&gt;\n&lt;p&gt;\n\#{h(narrative).split(\&quot;\\n\&quot;).join(\&quot;&lt;br /&gt;\&quot;)}\n&lt;/p&gt;\n&quot;</span> 
65:           <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>